const env = 'test-k8s-azure';
/*后台访问地址*/
const loginUrl = `https://ivcs-${env}.zealcomm.cn`;

/*表单预览地址*/
const formUrl = `https://ivcs-${env}.zealcomm.cn/form/form-preview`;

/*是否使用@zco/ivcs*/
const ivcsUseNpm = false;

//上传文件最大大小
const maxUploadFileSize = 1024000 * 50;

//默认推流参数
const defaultMediaOptions = {
	cameraStreamAudioConstraints: {
		deviceId: undefined,
		source: 'mic'
	},
	cameraStreamVideoConstraints: {
		deviceId: undefined,
		frameRate: 15,
		resolution: {
			width: 640,
			height: 480
		},
		source: 'camera'
	},
	cameraPublishOptions: {
		audio: [
			{
				codec: {
					name: 'opus'
				},
				maxBitrate: 64
			}
		],
		video: [
			{
				codec: {
					name: 'vp8'
				},
				maxBitrate: 1024
			},
			{
				codec: {
					name: 'h264'
				},
				maxBitrate: 1024
			}
		]
	},
	screenStreamAudioConstraints: {
		source: 'screen-cast'
	},
	screenStreamVideoConstraints: {
		frameRate: 15,
		resolution: {
			width: 1280,
			height: 720
		},
		source: 'screen-cast'
	},
	screenPublishOptions: {
		audio: [
			{
				codec: {
					name: 'opus'
				},
				maxBitrate: 64
			}
		],
		video: [
			{
				codec: {
					name: 'vp8'
				},
				maxBitrate: 1024
			},
			{
				codec: {
					name: 'h264'
				},
				maxBitrate: 1024
			}
		]
	}
};

const defaultLocalStreamParameter = {
	audioConstraints: {
		deviceId: undefined,
		source: 'mic'
	},
	videoConstraints: {
		deviceId: undefined,
		frameRate: 15,
		resolution: {
			width: 640,
			height: 480
		},
		source: 'camera'
	},
	publishOptions: {
		audio: [
			{
				codec: {
					name: 'opus'
				}
			}
		],
		video: [
			{
				codec: {
					name: 'vp8'
				},
				maxBitrate: 1024
			},
			{
				codec: {
					name: 'h264'
				},
				maxBitrate: 1024
			}
		]
	}
};

const defaultScreenStreamParameter = {
	audioConstraints: {
		source: 'screen-cast'
	},
	videoConstraints: {
		frameRate: 15,
		resolution: {
			width: 1280,
			height: 720
		},
		source: 'screen-cast'
	},
	publishOptions: {
		audio: [
			{
				codec: {
					name: 'opus'
				}
			}
		],
		video: [
			{
				codec: {
					name: 'vp8'
				},
				maxBitrate: 1024
			},
			{
				codec: {
					name: 'h264'
				},
				maxBitrate: 1024
			}
		]
	}
};
